package fr.pascal.client;

import com.google.gwt.place.shared.PlaceController;
import com.google.web.bindery.event.shared.EventBus;
import com.google.web.bindery.event.shared.SimpleEventBus;

import fr.pascal.client.ui.barre.BarreNavigation;
import fr.pascal.client.ui.barre.BarreNavigationImpl;
import fr.pascal.client.ui.selection.SelectionRubriques;
import fr.pascal.client.ui.selection.SelectionRubriquesImpl;


public class ClientFactoryImpl implements ClientFactory {
	
	private final EventBus eventBus = new SimpleEventBus();
    private final PlaceController placeController = new PlaceController(eventBus);
    
    private final SelectionRubriques selectionRubriquesView = new SelectionRubriquesImpl();
    private final BarreNavigation barreNavigationView = new BarreNavigationImpl();

	@Override
	public EventBus getEventBus() {
		return eventBus;
	}

	@Override
	public PlaceController getPlaceController() {
		return placeController;
	}

	@Override
	public SelectionRubriques getSelectionRubriquesView() {
		return selectionRubriquesView;
	}

	@Override
	public BarreNavigation getBarreNavigationView() {
		return barreNavigationView;
	}
}
